package com.example.mbl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Patent {
    private String patentid;

    private String title;

    private String number;

    private String assignee;

    private String inventor;

    private String flag;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createdate;

    private String year;

    public Patent(String patentid, String title, String number, String assignee, String inventor, String flag, Date createdate, String year) {
        this.patentid = patentid;
        this.title = title;
        this.number = number;
        this.assignee = assignee;
        this.inventor = inventor;
        this.flag = flag;
        this.createdate = createdate;
        this.year = year;
    }

    public Patent() {
        super();
    }

    public String getPatentid() {
        return patentid;
    }

    public void setPatentid(String patentid) {
        this.patentid = patentid == null ? null : patentid.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number == null ? null : number.trim();
    }

    public String getAssignee() {
        return assignee;
    }

    public void setAssignee(String assignee) {
        this.assignee = assignee == null ? null : assignee.trim();
    }

    public String getInventor() {
        return inventor;
    }

    public void setInventor(String inventor) {
        this.inventor = inventor == null ? null : inventor.trim();
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag == null ? null : flag.trim();
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year == null ? null : year.trim();
    }
}